package com.zh.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @TableName login_logs
 */
@TableName(value = "login_logs")
@Data
@ApiModel(value = "LoginLog", description = "登录日志")
public class LoginLog implements Serializable {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("用户id")
    private Integer loginId;
    @ApiModelProperty("登录ip地址")
    private String address;
    @ApiModelProperty("登录设备")
    private String device;
    @ApiModelProperty("登录时间")
    private LocalDateTime loginTime;

    private static final long serialVersionUID = 1L;
}